import request from '@/utils/request';
/**
 *
 * @Description 登录接口
 * @param {*} data { username, password, code, uid }
 * @returns Promise
 */
export const requestPostLoginByUserNameAndPassword = function (data) {
  return request({
    url: '/auth/login',
    method: 'post',
    data
  })
}

/**
 * @Description 登出接口
 * @returns Promise
 */
export const requestDeleteLogOut = function () {
  return request({
    url: '/auth/logout',
    method: 'delete',
  })
}



// export const requestGetVerificationCode = function () {
//   return request({
//     url: '/code',
//     method: 'get',
//   })
// }

